"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.request = exports.URL = exports.PathParams = void 0;
var util_1 = require("../../../utils/util");
var PathParams = /** @class */ (function () {
    function PathParams() {
        /** userId */
        this.userId = undefined;
    }
    return PathParams;
}());
exports.PathParams = PathParams;
exports.URL = '/api/menu/user/{userId}';
/**
 * @desc 获取指定用户可访问的菜单列表
 */
function request(pathParams, options) {
    var url = '/api/menu/user/{userId}';
    for (var key in pathParams) {
        url.replace('{' + key + '}', pathParams[key]);
    }
    var fetchOption = Object.assign({
        url: url,
        method: 'GET',
        headers: {
            'Content-Type': 'application/json',
        },
    }, options);
    return util_1.fetch(fetchOption);
}
exports.request = request;
